package br.ufrj.ppgi.greco.util;

import java.io.IOException;
import java.util.Properties;

import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.caelum.vraptor.ioc.Component;

@Component
@ApplicationScoped
public class UtilConfig
{
	private String accessKey;
	

	public UtilConfig()
	{
		Properties prop = new Properties();
		try
		{			
			prop.load(this.getClass().getResourceAsStream("/META-INF/config.properties"));
			this.accessKey = prop.getProperty("X-ApiKey"); 
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}
	

	public String getKey()
	{
		return this.accessKey;
	}
	
	
}
